home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / MetaPropValues.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  988 b   |  33 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.rock.table.QlickerDataSource;
  4.  
  5. public class MetaPropValues implements QlickerDataSource {
  6.    public static final String VALUES = "values";
  7.    public static final String DEFAULT = "default";
  8.    private String[] values;
  9.    private String defaultValue;
  10.  
  11.    public MetaPropValues() {
  12.       this(new String[]{Boolean.FALSE.toString(), Boolean.TRUE.toString()}, (String)null);
  13.    }
  14.  
  15.    public MetaPropValues(String[] var1, String var2) {
  16.       this.values = var1;
  17.       if (var2 == null && var1 != null) {
  18.          this.defaultValue = this.values[0];
  19.       } else {
  20.          this.defaultValue = var2;
  21.       }
  22.  
  23.    }
  24.  
  25.    public Object getQlickerData(String var1, Object var2) {
  26.       if (var1.equals("values")) {
  27.          return this.values;
  28.       } else {
  29.          return var1.equals("default") ? this.defaultValue : null;
  30.       }
  31.    }
  32. }
  33.